"""
岗位管理URL配置
"""
from django.urls import path
from . import views

urlpatterns = [
    # 公司管理
    path('companies/', views.CompanyListCreateView.as_view(), name='company_list_create'),
    path('companies/<int:pk>/', views.CompanyDetailView.as_view(), name='company_detail'),
    
    # 岗位管理
    path('', views.JobListCreateView.as_view(), name='job_list_create'),
    path('<int:pk>/', views.JobDetailView.as_view(), name='job_detail'),
    path('<int:pk>/publish/', views.publish_job, name='publish_job'),
    path('<int:pk>/close/', views.close_job, name='close_job'),
    
    # 岗位申请
    path('<int:job_id>/apply/', views.apply_job, name='apply_job'),
    path('applications/', views.JobApplicationListView.as_view(), name='job_application_list'),
    path('applications/<int:pk>/', views.JobApplicationDetailView.as_view(), name='job_application_detail'),
    path('applications/<int:pk>/review/', views.review_application, name='review_application'),
    
    # 岗位推荐
    path('recommendations/', views.JobRecommendationListView.as_view(), name='job_recommendation_list'),
    path('recommendations/generate/', views.generate_recommendations, name='generate_recommendations'),
    
    # 统计
    path('statistics/', views.job_statistics, name='job_statistics'),
    path('statistics/detailed/', views.detailed_job_statistics, name='detailed_job_statistics'),
]
